<template>
  <div>
    <h3>权限管理</h3>
<!--    //主数据-->
  <el-table :data="tableData" style="width: 100%">
    <el-table-column prop="pwId" label="权限id" width="180" v-if="false"></el-table-column>
    <el-table-column prop="pwName" label="权限名称" width="180"></el-table-column>
    <el-table-column prop="pwLevel" label="权限等级" width="180"></el-table-column>
    <el-table-column prop="pwTip" label="备注"></el-table-column>
    <el-table-column label="操作">
      <template slot-scope="scope">
        <el-button
          size="mini"
          @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
      </template>
    </el-table-column>
  </el-table>

    <el-dialog title="收货地址" :visible.sync="dialogFormVisible">
      <el-form :model="form">
        <el-form-item label="权限名称" :label-width="formLabelWidth">
          <el-input v-model="form.name" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="权限等级" :label-width="formLabelWidth" >
          <el-input v-model="form.level" autocomplete="off" disabled=disabled></el-input>
        </el-form-item>
        <el-form-item label="权限备注" :label-width="formLabelWidth">
          <el-input v-model="form.tip" autocomplete="off"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button type="primary" @click="editPowerInfo()">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import index from "./index.js"
export default index
</script>

<style scoped lang="scss">

</style>
